from tools_algorithm import *


class Solution:
    def triangleType(self, nums: List[int]) -> str:
        nums.sort()
        if nums[0] + nums[1] <= nums[2]:
            return "none"
        cnt = Counter(nums)
        if len(cnt) == 1:
            return "equilateral"
        if len(cnt) == 2:
            return "isosceles"
        return "scalene"
